<%= meta %>

<title>图片列表</title>
</head>
<body>
  <%= header %>
  <%= menu %>
  <section class="Hui-article-box">
  	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 众筹项目 <span class="c-gray en">&gt;</span> 新建项目列表  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
  	<div class="Hui-article">
  		<article class="cl pd-20">
  			<div class="text-c">
          活动编号：<input type="text" class="input-text" style="width:120px;">　
          活动名称：<input type="text" class="input-text" style="width:120px;">　
  				<button name="" id="" class="btn btn-success radius" type="submit"><i class="Hui-iconfont">&#xe665;</i> 查 询</button>
  			</div>
  			<div class="cl pd-5 bg-1 bk-gray mt-20">
  				<span class="l"><!-- <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>  --><a class="btn btn-primary radius" href="javascript:;"><i class="Hui-iconfont">&#xe634;</i> 导出</a></span>
  				<span class="r" style="line-height:30px;">共有数据：<strong>1</strong> 条</span> </div>
          <div class="mt-20">
    				<table class="table table-border table-bordered table-bg table-hover table-sort">
    					<thead>
    						<tr class="text-c">
    							<th>编号</th><th>活动名称</th><th>活动类型</th><th>活动链接</th><th>备注</th><th>开始时间</th>
    							<th>结束时间</th><th>状态</th><th>操作</th>
    						</tr>
    					</thead>
    					<tbody>
    						<tr class="text-c">
    							<td>1</td><td>18510162765</td><td>是</td><td>魏华鑫</td>
    							<td>5137291990123223232</td><td>年收入30万</td><td>招商银行62223423423423</td><td>5000.00</td>
                  <td class="f-14 td-manage">
                    <a style="text-decoration:none" class="ml-5" onClick="project_edit('运营-活动列表-添加','运营-活动列表-添加.html','10001')" href="javascript:;" title="项目编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
                    <a style="text-decoration:none" onClick="project_stop(this,'10001')" href="javascript:;" title="下架"><i class="Hui-iconfont">&#xe6de;</i></a>
                  </td>
    						</tr>
    					</tbody>
    				</table>
    			</div>

    	</article>
  	</div>
  </section>

  <%= footer %>
  <script>
  //*项目-编辑*/
  function project_edit(title,url,id,w,h){
  	var index = layer.open({
  		type: 2,
  		title: title,
  		content: url
  	});
  	layer.full(index);
  }
  /*项目-下架*/
  function project_stop(obj,id){
  	layer.confirm('确认要下架吗？',function(index){
  		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="project_start(this,id)" href="javascript:;" title="发布"><i class="Hui-iconfont">&#xe603;</i></a>');
  		$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已下架</span>');
  		$(obj).remove();
  		layer.msg('已下架!',{icon: 5,time:1000});
  	});
  }

  /*项目-发布*/
  function project_start(obj,id){
  	layer.confirm('确认要发布吗？',function(index){
  		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="picture_stop(this,id)" href="javascript:;" title="下架"><i class="Hui-iconfont">&#xe6de;</i></a>');
  		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发布</span>');
  		$(obj).remove();
  		layer.msg('已发布!',{icon: 6,time:1000});
  	});
  }
  /*项目-申请上线*/
  function project_shenqing(obj,id){
  	$(obj).parents("tr").find(".td-status").html('<span class="label label-default radius">待审核</span>');
  	$(obj).parents("tr").find(".td-manage").html("");
  	layer.msg('已提交申请，耐心等待审核!', {icon: 1,time:2000});
  }
  </script>
</body>
</html>
